using Microsoft.Xna.Framework;

namespace Indiefreaks.Xna.Logic
{
    public class NonPlayerAgent : Agent
    {
        #region Overrides of Agent

        protected internal override void Process(GameTime gameTime)
        {
            var elapsed = (float) gameTime.ElapsedGameTime.TotalSeconds;
            foreach (Behavior behavior in BehaviorsCollection)
            {
                ((IProcess)behavior).Process(elapsed);
            }
        }

        #endregion
    }
}